package FitNess;



import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JPanel;

public class background extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	Image img;
	public void paint(Graphics p) {

			defile(p);
	}
	
	public void defile(Graphics p){
		
		try {
			img = ImageIO.read(new File("images/fitness.jpg"));
			p.drawImage(img, 0, 0, this.getWidth(), this.getHeight(), this);
		} catch (IOException e) {
		}
	}
}
